const state = {
    currentView:'customer'
}

const getters = {
    currentView(state){
        return state.currentView
    }
}

const mutations = {
    switch_view(state,{currentView}){
        state.currentView = currentView;
    }
}

const actions = {
    switch_view({commit},{currentView}){
        commit('switch_view',{currentView})
    }
}

export default {
    state,
    getters,
    mutations,
    actions
}